home *** CD-ROM | disk | FTP | other *** search
/ Practical Internet Web Designer 89 / PIWD89.iso / pc / CONTENTS / BONUS / FULL / wikiwriter / setup-ww2x.exe / {app} / help / markup.db < prev    next >
Text File  |  2003-05-03  |  12KB  |  305 lines

  1. @@title WikiWriter Help: Markup Syntax
  2. @@inc helptoc
  3.  
  4. == Markup Syntax
  5.  
  6. [[b WikiWriter]] markup is intended to be quick to write, easy to read, and sensible to use. I put the whole syntax on this one page, in case you'd like to print it out for reference.
  7.  
  8. Topics: <a href="#PageLinks">Page Links</a> | <a href="#CreatePage">Create New Page</a> | <a href="#HereLinks">Here Links</a> | <a href="#ExternalLinks">External Links</a> | <a href="#Headings">Headings</a> | <a href="#Paragraphs">Paragraphs</a> | <a href="#Bullets">Bulleted Lists</a> | <a href="#Numbers">Numbered Lists</a> | <a href="#Mixed">Mixed Lists</a> | <a href="#Spans">Spans</a> | <a href="#Divs">Divs</a> | <a href="#Images">Images</a> | <a href="#Tables">Tables</a> | <a href="#Macros">Macros</a> such as Included Files, Index Entries, HeadInfo, Title Commands
  9.  
  10. === HTML is Okay
  11.  
  12. If you are comfortable writing HTML markup, go right ahead and use it. HTML works just fine in [[b WikiWriter]]. But it's easier and faster to use [[b WikiWriter's]] simplified markup with features like automatic page creation and linking and quick layout with DIV blocks.
  13.  
  14. === WikiWriter Markup
  15.  
  16. [[b WikiWriter]] has special markup for links (double-parentheses), inline formatting (double-brackets), and structure commands (token [[i followed by a space]] at the beginning of a line). Explanations and examples follow, below.
  17.  
  18. <a name="PageLinks"></a>
  19.  
  20. === Page Links
  21.  
  22. To create a link to an [[b WikiWriter]] page, put the page name in double parentheses:
  23. <pre>
  24.     ((Getting Started))
  25. </pre>
  26.  
  27. will produce the link ((Getting Started))
  28. <a name="CreatePage"></a>
  29. Create a new page by writing a link for the page. When you [[b Save]] your text, then click on the new link in the displayed page, [[b WikiWriter]] will create the page. Select [[b Edit page]], and go to work on it.
  30.  
  31. <a name="HereLinks"></a>
  32.  
  33. === "You are here" Links
  34.  
  35. Links to the current page have the "here" style applied to them:
  36.  
  37. <pre>
  38.     ((Markup Syntax))
  39. </pre>
  40. will look like ((Markup Syntax)). This is a feature for building navigation lists, like the box in the upper right corner of this page. Build a list of page links in a separate file, include that file on each page, and [[b WikiWriter]] will highlight the current page in the list to give the viewer a sense of location. You can disable this effect by deleting or commenting-out the "here" style in the CSS file.
  41. <a name="ExternalLinks"></a>
  42.  
  43. === Web Links
  44.  
  45. External links, to Web sites in the Outside World, will work (of course!) only while you are connected to the Internet. Since the external site will not know about your [[b WikiWriter]] project, there will be no way to get back when you follow an external link. Therefore, [[b WikiWriter]] will create a link that uses [[b target="_blank"]] in the link reference so the link will open a new browser window. Then users can close the external link window when they're done, to return to [[b WikiWriter]].
  46.  
  47. External links use the full URL, in single brackets
  48. <pre>
  49.     [http://hytext.com/]
  50. </pre>
  51. will produce the code:
  52. <pre>
  53.     [<a href="http://hytext.com/" target="_blank">http://hytext.com/</a>]
  54. </pre>
  55. which will produce the link [http://hytext.com/]. Notice the brackets are still in place, as a sign to the user that the link is external.
  56.  
  57. You can use a link description by following the URL with a space. Anything after the space, still inside the brackets, will be the link description. So:
  58. <pre>
  59.     [http://hytext.com/ HyText Wiki Works]
  60. </pre>
  61. will produce a link that looks like [http://hytext.com/ HyText Wiki Works] without the inelegant URL stuff.
  62. <a name="Headings"></a>
  63.  
  64. === Headings
  65. Use leading equal signs to designate a line for a heading. Heading levels 1-6 are supported by [[b WikiWriter]]:
  66.  
  67. <pre>
  68.     = Heading One
  69.     == Heading Two
  70.     === Heading Three
  71.     ==== Heading Four
  72.     ===== Heading Five
  73.     ====== Heading Six
  74. </pre>
  75.  
  76. produces:
  77.     = Heading One
  78.     == Heading Two
  79.     === Heading Three
  80.     ==== Heading Four
  81.     ===== Heading Five
  82.     ====== Heading Six
  83. [[b Note that you must have a space between the equal sign(s) and the text.]]
  84.  
  85. <a name="Paragraphs"></a>
  86. === Paragraphs
  87.  
  88. Create paragraph endings by pressing [[b Enter]]. You may use one or more blank lines, if you wish. In the HTML display, only one blank line will appear between paragraphs, no matter how many blank lines you have in the source text. Paragraph spacing is controlled by the CSS file.
  89. <a name="Bullets"></a>
  90.  
  91. === Bulleted (Unordered) Lists
  92.  
  93. Indicate a list item with a leading star (asterisk (*)) with a space separating it from the text. Use two, or three, stars to produce second or third level sublist (list item indentation). A slash-star(/*) marks the end of a list or sublist. You need a slash-star for each level you want to end:
  94.  
  95. <pre>
  96.     * List item one
  97.     * List item two
  98.     * List item three
  99.     ** Second level item
  100.     ** Another second level item
  101.     *** Third level item
  102.     /*
  103.     /*
  104.     * Back at level one
  105.     /* End of list
  106. </pre>
  107. produces:
  108.     * List item one
  109.     * List item two
  110.     * List item three
  111.     ** Second level item
  112.     ** Another second level item
  113.     *** Third level item
  114.     /*
  115.     /*
  116.     * Back at level one
  117.     /* End of list
  118. <a name="Numbers"></a>
  119.  
  120. === Numbered (Ordered) Lists
  121.  
  122. Use hash marks (#) for numbered lists, with a slash-hash (/#) to end a list or sublist:
  123.  
  124. <pre>
  125.     # List item one
  126.     # List item two
  127.     # List item three
  128.     ## Second level item
  129.     ## Another second level item
  130.     ### Third level item
  131.     /#
  132.     /#
  133.     # Back at level one
  134.     /# End of list
  135. </pre>
  136. produces:
  137.  
  138.     # List item one
  139.     # List item two
  140.     # List item three
  141.     ## Second level item
  142.     ## Another second level item
  143.     ### Third level item
  144.     /#
  145.     /#
  146.     # Back at level one
  147.     /# End of list
  148. <a name="Mixed"></a>
  149.  
  150. === Mixed Lists
  151.  
  152. You can mix bullets and numbers:
  153.  
  154. <pre>
  155.     # List item one
  156.     # List item two
  157.     # List item three
  158.     ** Second level bullet
  159.     ** Another second level bullet
  160.     *** Third level bullet
  161.     /*
  162.     /*
  163.     # Back at level one
  164.     /# End of list
  165. </pre>
  166.     # List item one
  167.     # List item two
  168.     # List item three
  169.     * Second level bullet
  170.     * Another second level bullet
  171.     ** Third level bullet
  172.     /*
  173.     /*
  174.     # Back at level one
  175.     /# End of list
  176. <a name="Spans"></a>
  177.  
  178. === Spans
  179.  
  180. Mark text with double brackets for applying a SPAN style for inline text formatting. The first word in the brackets is the style name listed in the CSS file. For instance, "b" for bold, "i" for italics, and "rev" for reverse are in the default CSS file.
  181.  
  182. <pre>
  183. For instance, [[b "b" for bold]], [[i "i" for italics]],
  184. and [[rev "rev" for reverse]] are in the default CSS file.
  185. </pre>
  186. For instance, [[b "b" for bold]], [[i "i" for italics]], and [[rev "rev" for reverse]] are in the default CSS file.
  187.  
  188. You can nest spans if the nesting is logical, but you have to keep track of the brackets:
  189. <pre>
  190. This would be [[b [[i [[rev bold italic reversed]]]]]].
  191. </pre>
  192. This would be [[b [[i [[rev bold italic reversed]]]]]].
  193.  
  194. Available SPAN styles are in the SPANS sections of the [[b iwiki.css]] CSS file, as shown in the SPAN Styles dropdown list in the [[b WikiWriter]] menu bar.
  195. <a name="Divs"></a>
  196.  
  197. === Divs
  198.  
  199. For blocks of text (and/or graphics, lists, other blocks, etc.) use DIV elements named in the CSS file. Open the DIV with a dot and the class name (followed by a space if you have additional text on the same line), and close it with a dot and "end" where you want to terminate the effect of hte DIV.
  200.  
  201. <pre>
  202. .result This is a "result" DIV.
  203. .end
  204. </pre>
  205. .result This is a result DIV.
  206. .end
  207.  
  208. The appearance and behavior of DIVs is specified in the CSS file. If you nest DIVs, you have to close with a dot-end for each DIV in the set:
  209. <pre>
  210. .plan This is a "plan" DIV...
  211. .result ... holding a "result" DIV.
  212. .end
  213. .end
  214. </pre>
  215. .plan This is a "plan" DIV...
  216. .result ... holding a "result" DIV.
  217. .end
  218. .end
  219.  
  220. Available DIV styles are in the DIVs sections of the [[b iwiki.css]] CSS file, as shown in the DIV Styles dropdown list in the [[b WikiWriter]] menu bar.
  221. <a name="Pre"></a>
  222.  
  223. === Preformatted Text
  224.  
  225. The HTML "PRE" tag serves to block [[b WikiWriter]] display formatting and show the raw text. To disable HTML tags in a PRE block, you must replace any left-angle brackets (the opening mark for an HTML tag) with ampersand-lt-semicolon (&lt;).You can see how to use the PRE tag by selecting [[b Edit page]] and looking at the source for this page. Use [[b Cancel Editing]] to get back to the display view of the page.
  226. <a name="Images"></a>
  227.  
  228. === Images
  229. Use typical HTML to call in an image:
  230. <pre> <img src="frog.gif">
  231. </pre>
  232. gives you <img src="frog.gif">
  233. <a name="Tables"></a>
  234.  
  235. === Tables
  236. You have to use HTML markup to create tables. There's the PRE tag version:
  237.  
  238. <pre>
  239. <pre>
  240. --------------------------------------
  241. Some text          Some more text
  242. A word or two      Maybe three or four
  243. --------------------------------------
  244. </pre>
  245. </pre>
  246. gives you:
  247. <pre>
  248. --------------------------------------
  249. Some text          Some more text
  250. A word or two      Maybe three or four
  251. --------------------------------------
  252. </pre>
  253.  
  254. For more elegant tables, use HTML table markup:
  255.  
  256. <pre>
  257. <table border=1>
  258. <tr><td>One Cell</td><td>Another cell</td></tr>
  259. <tr><td colspan=2>Big 2-column cell</td></tr>
  260. </table>
  261. </pre>
  262. which gives you:
  263. <table border=1>
  264. <tr><td>One Cell</td><td>Another cell</td></tr>
  265. <tr><td colspan=2>Big 2-column cell</td></tr>
  266. </table>
  267. <a name="Macros"></a>
  268.  
  269. === Macro Commands: Include, Index, HeadInfo, Title, SuperComment commands
  270. [[b Include]] — To include one [[b WikiWriter]] page in another, use the token "@@inc" at the beginning of a line, followed by a space and the page name:
  271. <pre>
  272.    @@inc HelpTOC
  273. </pre>
  274.  
  275. inserts the navigation menu at the top of this page, for instance. The menu itself is at ((HelpTOC)). Notice that the menu simply lists the links for the Help project. The "here" link processing identifies the link for the current page, and gives it special display treatment according to the "here" style in the CSS file.<a href name="Index"></a>
  276.  
  277. [[b Index]] — To add an item for indexing, put the item on a separate line, marked with @@index. Use commas to separate multiple items in a single index entry line:
  278.  
  279. <pre>
  280.    @@index Indexing
  281.    @@index navigation, edit box, syntax
  282. </pre>
  283.  
  284. To build an index for a project, select the menu item [[b Tools > Build Index]]. The system will scan all the pages in the project and build an index file [[b index.db]] list index entries with their pages.
  285.  
  286. <a href name="HeadInfo"></a>
  287. [[b Headinfo]] — To insert information to be included in an HTML page's HEAD element, put the item on separate lines starting at the very top of the file, each line marked with @@headinfo:
  288. <pre>
  289.    @@headinfo <meta name="keywords" value="markup, syntax, tools">
  290.    @@headinfo <link rel="STYLESHEET" href="print.css" type="text/css">
  291. </pre>
  292.  
  293. To provide an alternative to the default page title (derived from the page filename), use @@title:
  294. <pre>
  295.    @@title Markup Syntax
  296. </pre>
  297. The filename for this page is [[b markup.db]], and the default title is therefore [[b markup]]. The above macro entry gives this page the title [[b Markup Syntax]] when the page is converted to HTML, making the page more presentable (since the title is displayed in the window title bar) and more accessible to search engines (which use the title to display search results)when uploaded to a web site.
  298.  
  299. [[b SuperComment]] — You can already put non-displaying comments into your pages with the HTML <!-- and --> tags. To create non-compiling SuperComments, readable in WikiWriter source .DB files but not compiled out to HTML or MHT pages, bracket the comment block with !! and /! starting in the first column of a line:
  300. <pre>
  301.   !! SuperComment block starts here -- this line does not compile.
  302.   Any lines in this block do not compile.
  303.   /! SuperComment ends here -- this line does not compile, but any lines after it do compile.
  304. </pre>
  305.